package com.sxhalo.fsms.mapper;


import com.sxhalo.fsms.domain.SysRoleModules;
import com.sxhalo.fsms.domain.SysRoleModulesKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleModulesMapper {
    int deleteByPrimaryKey(SysRoleModulesKey key);

    int insert(SysRoleModules record);

    int insertSelective(SysRoleModules record);

    SysRoleModules selectByPrimaryKey(SysRoleModulesKey key);

    int updateByPrimaryKeySelective(SysRoleModules record);

    int updateByPrimaryKey(SysRoleModules record);
    
    int getCount(@Param("where")String where);

    List<SysRoleModules> findWhereList(@Param("where")String where, @Param("order")String order);

    List<SysRoleModules> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);
    int deleteByRoleId(@Param("roleId")Integer roleId);
    int deleteByWhere(@Param("where")String where);
    int batchInsert(@Param("list")String[] list,@Param("roleId")Integer roleId);
}